<style>
	.span-20 {
		width: 1024px;
	}
</style>	
<?php
$this->breadcrumbs=array(
	'Jobs'=>array('index'),
	'Statistics',
);

Yii::app()->clientScript->registerScript('search', "
$('.search-button').click(function(){
	$('.search-form').toggle();
	return false;
});
");
?>
<h1>Thống kê mua sắm thiết bị</h1>
<div class="search-form">
<?php $this->renderPartial('_searchByTime',array(
	'model'=>$model,
)); ?>
</div><!-- search-form -->
<?php if($submit == true): ?>
<div id="gridview-statistics">
<?php 
	$this->widget('zii.widgets.grid.StatisticsCGridView', array(
	'id'=>'job-group-grid',
	'dataProvider'=>$model->searchByTime($time),
	'columns'=>array(
		'department',
		array(
			'header'=>'Ngày tiếp nhận',
			'value'=>'Common::mySQLDatetimeToString($data->received_date)'
		),
		'detail',
		'note',		
	),
)); ?>

</div>
<?php endif; ?>